import http from "@/utils/http";

/**
 * 商品详情
 */
export const getGoodsDetail = (id) => {
  return http({
    url: "/goods",
    data: { id },
  });
};

/**
 * 同类推荐(也支持猜你喜欢)
 * id 传入代表查询相关商品，不传代表查询猜你喜欢
 * limit 查询数量
 */
export const getGoodsRelevant = (data) => {
  return http({
    url: "/goods/relevant",
    data,
  });
};
